import request from "@/utils/request";
export function supplierList(query) {
  return request({
    url: "/mall/gift/supplier/list",
    method: "get",
    params: query,
  });
}
//添加
export function addSupplier(data) {
  return request({
    url: "/mall/gift/supplier",
    method: "post",
    data,
  });
}
//修改
export function updateSupplier(data) {
  return request({
    url: "/mall/gift/supplier",
    method: "put",
    data,
  });
}
//删除
export function deleteSupplier(id) {
  return request({
    url: "/mall/gift/supplier/" + id,
    method: "delete",
  });
}
//查询
export function getSupplier(id) {
  return request({
    url: "/mall/gift/supplier/" + id,
    method: "get",
  });
}
//是否可用
export function updateIsStatus(data) {
  return request({
    url: "/mall/gift/supplier/updateIsStatus",
    method: "put",
    data,
  });
}
//供应商列表
export function supplierAllList(query) {
  return request({
    url: "/mall/gift/supplier/showSupplierList",
    method: "get",
    params: query,
  });
}
//同步供应商
export function synPlatSupplier() {
  return request({
    url: "/mall/gift/supplier/synPlatSupplier",
    method: "put",
  });
}
